# ============================================================================ #
# Copyright (c) 2022 - 2025 NVIDIA Corporation & Affiliates.                   #
# All rights reserved.                                                         #
#                                                                              #
# This source code and the accompanying materials are made available under     #
# the terms of the Apache License 2.0 which accompanies this distribution.     #
# ============================================================================ #

include(HandleLLVMOptions)

add_llvm_executable(CircuitCheck
  CircuitCheck.cpp
  UnitaryBuilder.cpp
)

target_include_directories(CircuitCheck
  PRIVATE ${CMAKE_SOURCE_DIR}/tpls/eigen
  PRIVATE ${CMAKE_SOURCE_DIR}/runtime
)

target_link_libraries(CircuitCheck
  PRIVATE
  MLIRArithDialect
  MLIRParser
  MLIRPass
  MLIRTransforms

  CCDialect
  QuakeDialect
)
